<template>
  <h1>123</h1>
</template>

<script>
import { isProxy, isReactive, isReadonly, isRef, reactive, readonly, ref, toRefs } from 'vue'
  export default {
    name:'App',
   setup(){
     let car = reactive({
       name:'奥迪',
       price:'40w'
     })
     let sum = ref(0)
     let car2= readonly(car)

     console.log(isRef(sum));
     console.log(isReactive(car));
     console.log(isReadonly(car2));
     console.log(isProxy(car));

     return {...toRefs(car)}
   }
  }
</script>

<style>
  .app{
    background-color: aqua;
    padding: 10px;
  }
</style>